<!DOCTYPE html>
<html>
    <head>
        <title><%= title %></title>
        <link rel="stylesheet" href="/stylesheets/style.css"/>
    </head>
    <body>
        <h1>Photos</h1>
        <p>Express stock photo application.</p>
        <div id="photos">
            <% var id = 0; %>
            <% photos.forEach(function(photo) { %>
            <div class="photo">
                <h2><%=photo.name%></h2>
                <a href="/photo/<%=id%>/download">
                <img src='/photos/<%=photo.path%>'/>
                <%id++;%>
                </a>
            </div>
            <% }) %>
        </div>
    </body>
</html>
